package com.zhiyou100.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.zhiyou100.util.excel.SheetName;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.ExceptionHandler;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 考试 实体类
 *
 * @author yang
 */


@AllArgsConstructor
@NoArgsConstructor
@Builder
@Getter
@Setter
@SheetName("Sheet1")
public class Exam implements Serializable {
    /**
     * 考试的 id
     */
    private Integer id;
    /**
     * 考试的时间
     * js datetime-local 格式  2020-10-02T21:39
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private Date time;
    /**
     * 考试的题目
     */
    private String topic;

    @Override
    public String toString() {
        return "Exam{" +
                "id=" + id +
                ", time=" + time +
                ", topic='" + topic + '\'' +
                '}';
    }
}
